﻿using Messenger.Utils;
using Messenger.ViewModels;
using Messenger.WinDialogs;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.WebSockets;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using YamlDotNet.Serialization;


namespace Messenger.Views
{
    /// <summary>
    /// ComboBoxView.xaml 的交互逻辑
    /// </summary>
    public partial class ComboBoxView : UserControl,IDialogView
    {
        public ComboBoxViewModel ViewModel { get; set; }
        public ComboBoxView()
        {
            InitializeComponent();
            ViewModel = new ComboBoxViewModel();
            this.DataContext =ViewModel;
        }
        public event IDialogView.HandleResult? HandleResultEvent;

        public void Dispose()
        {
            return;
        }

        public object? GetResult()
        {
            return ViewModel;
        }

        public void HadleResult(MessageBoxResult result)
        {
            HandleResultEvent?.Invoke(result);
        }
    }
}
